//
//  SEGParkLoginViewModel.h
//  SEGViewModel
//
//  Created by Clavis on 2020/12/9.
//

#import <Foundation/Foundation.h>

/*
 1.极光手机号一键登录未注册类型
 2.微信绑定未注册类型
 3.apple绑定未注册类型
 4.短信验证码登录未注册类型
 */
typedef enum : NSUInteger {
    SEGParkEnterSelectCommunityVCTypeByPhone,
    SEGParkEnterSelectCommunityVCTypeByWechat,
    SEGParkEnterSelectCommunityVCTypeByApple
} SEGParkEnterSelectCommunityVCType;

#define kParkLoginFailMessage @"登录失败，请重试"
#define kParkBindFailMessage @"绑定失败，请重试"
#define kParkLoadJPUSHFailMessage @"加载失败，请重试"

@interface SEGParkLoginViewModel : NSObject

/// 使用微信登录
@property (nonatomic, strong) RACCommand *wechatLoginCommand;

/// 使用apple登录
@property (nonatomic, strong) RACCommand *appleLoginCommand;

/// 三方账号绑定逻辑
@property (nonatomic, strong) RACCommand *thirdParkCountBindCommand;

/// 微信绑定
@property (nonatomic, strong) RACCommand *wechatBindComand;

/// apple绑定
@property (nonatomic, strong) RACCommand *appleBindComand;

/// 绑定手机号（检验短信并自动登录）
@property (nonatomic, strong) RACCommand *bindPhoneNumberCommand;

/// 通过极光token获取用户手机号(也可自动登录)
@property (nonatomic, strong) RACCommand *getTelByJPUSHTokenCommand;

/// 快速注册接口
@property (nonatomic, strong) RACCommand *fastRegsiterCommand;

/// 使用极光手机号一键登录
//@property (nonatomic, strong) RACCommand *loginByJPUSHCommand;

/// 使用密码登录
@property (nonatomic, strong) RACCommand *loginCommand;

/// 使用短信验证码登录 或校验短信
@property (nonatomic, strong) RACCommand *smsLoginOrCheckCommand;


/// 用户手机号
@property (nonatomic, copy) NSString *tel;

/// 用户ID
@property (nonatomic, copy, readonly) NSString *userID;

/// 短信验证码
@property (nonatomic, copy) NSString *smsCode;

///// 图形验证码token
//@property (nonatomic, copy) NSString *rabdomToken;
///// 图形验证码code
//@property (nonatomic, copy) NSString *imgCode;

/// 微信openID
@property (nonatomic, copy) NSString *wechatCode;

/// 后台根据微信code查询得到的openID
@property (nonatomic, copy, readonly) NSString *realWechatOpenID;

/// Apple user ID
@property (nonatomic, copy) NSString *appleUserID;


@end
